// 服务器代码如下：
const express = require("express");

const app = express();

const server = require("http").createServer(app);

const io = require("socket.io").listen(server);

users = [];
connections = [];

server.listen(process.env.PORT || 3000);

console.log("Server is running on port 3000");

app.get("/", function (req, res) {
  res.sendFile(__dirname + "index.html");
});
